﻿capital = 64

if = {
	limit = {
		NOT = {
			has_dlc = "No Step Back"
		}
	}
	set_oob = "GER_1936"
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_oob = "GER_1936_nsb"
}

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "GER_1936_air_bba"
		set_technology = {
			aa_lmg = 1
			aa_cannon_1 = 1
			engines_1 = 1
			engines_2 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
			basic_small_airframe = 1
			iw_medium_airframe = 1
			basic_medium_airframe = 1
			iw_large_airframe = 1
		}
	else = {
		set_air_oob = "GER_1936_air_legacy"
		set_technology = {
			early_fighter = 1
			fighter1 = 1
			early_bomber = 1
			tactical_bomber1 = 1
			strategic_bomber1 = 1
			CAS1 = 1
			naval_bomber1 = 1
		}
	}
}

starting_train_buffer = 2
set_fuel_ratio = 0.8

# starting_truck_buffer = 0.8

# Starting tech
set_technology = {
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_recon = 1
	tech_support = 1		
	tech_engineers = 1
	tech_mountaineers = 1
	motorised_infantry = 1
	gw_artillery = 1
	interwar_antiair = 1
	basic_train = 1
	mobile_warfare = 1
	trade_interdiction = 1
	formation_flying = 1
	synth_oil_experiments = 1
	fuel_silos = 1
	fuel_refining = 1
}
if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
		improved_light_tank = 1
		basic_heavy_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
		improved_light_tank_chassis = 1
		basic_heavy_tank_chassis = 1
		engine_tech_1 = 1
	}
}
if = {
	limit = {
		not = { has_dlc = "Man the Guns" }
	}
	set_technology = {
		early_submarine = 1
		basic_submarine = 1
		early_destroyer = 1
		basic_destroyer = 1
		early_light_cruiser = 1
		basic_light_cruiser = 1
		early_heavy_cruiser = 1
		basic_heavy_cruiser = 1
		early_battleship = 1
		basic_battleship = 1
		early_battlecruiser = 1
		transport = 1
	}
	set_naval_oob = "GER_1936_naval"
}
if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		basic_naval_mines = 1
		submarine_mine_laying = 1
		early_ship_hull_light = 1
		basic_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_ship_hull_cruiser = 1
		early_ship_hull_heavy = 1
		basic_ship_hull_heavy = 1
		panzerschiffe = 1
		pre_dreadnoughts = 1
		early_ship_hull_submarine = 1
		basic_ship_hull_submarine = 1
		mtg_transport = 1
		basic_torpedo = 1
		improved_ship_torpedo_launcher = 1
		basic_battery = 1
		basic_light_battery = 1
		basic_medium_battery = 1
		basic_heavy_battery = 1
		basic_depth_charges = 1
		sonar = 1
		basic_cruiser_armor_scheme = 1
	}
	set_naval_oob = "GER_1936_naval_mtg"
}
if = {
	limit = {
		has_dlc = "La Resistance"
	}
	set_technology = {
		armored_car1 = 1
	}
}

set_variable = { var = ger_gateway_to_europe_influence value = 0 }

set_variable = { var = wehrmacht_anger value = 0 }
set_variable = { var = ss_anger value = 0 }
set_research_slots = 4
set_convoys = 200
set_stability = 0.75 
set_war_support = 0.3

#Trade
create_import = {
		resource = tungsten
		factories = 1
		exporter = SWE
}

1939.1.1 = {
    complete_national_focus = GER_naval_rearmament
	complete_national_focus = GER_naval_effort
	complete_national_focus = GER_u_boat_effort
	add_named_threat = { threat = 40 name = 1939_bookmark_threat }
	set_war_support = 0.7

	add_political_power = 1197
	add_command_power = 100
	
	#adding ministers
	add_ideas = {
		henschel
		ig_faben
		heinrich_himmler
		rudolf_hess
		ludwig_beck
		gerd_von_rundstedt
		GER_autarky_idea

		#laws
		war_economy
		extensive_conscription
	}
	
	
	
	set_autonomy = {
		target = SLO
		autonomous_state = autonomy_satellite
	}
	
	give_military_access = SLO
	create_wargoal = {
		type = take_state_focus
		target = POL
		generator = { 72 88 90 87 86 } # Zaolzie Krakow Kielce Lodz Poznan
	}

#Trade
	create_import = {
			resource = oil
			factories = 2
			exporter = SOV
	}

	#MR pact effect, Also has a part scripted in soviet history file
	unlock_national_focus = GER_mol_rib_pact
	every_other_country = {
		limit = {
			has_government = fascism 
		}
		add_opinion_modifier = { target = GER modifier = MR_pact_fascists }
	}

	#### Non Agression Pact with USSR
	if = {
		limit = {
			has_start_date > 1939.01.01
			has_start_date < 1941.01.01
		}

		diplomatic_relation = { country = SOV relation = non_aggression_pact }
	}

	#### Pre Italy Betrayl
	if = {
		limit = {
			has_start_date > 1939.01.01
			has_start_date < 1944.01.01
		}

		add_to_faction = ITA
	}


	add_opinion_modifier = { target = SOV modifier = MR_pact }
	#MR pact end

	#Soviet treaty
	unlock_national_focus = GER_soviet_treaty
	add_tech_bonus = {
		bonus = 1.0
		uses = 2
		category = armor
	}
	SOV = {
		add_opinion_modifier = { target = GER modifier = sov_ger_treaty }
		add_opinion_modifier = { target = GER modifier = sov_ger_treaty_trade }
	}
	#Soviet treaty end
	
	unlock_national_focus = GER_rhineland
	unlock_national_focus = GER_anschluss
	unlock_national_focus = GER_demand_sudetenland
	unlock_national_focus = GER_first_vienna_award
	unlock_national_focus = GER_end_of_czechoslovakia
	unlock_national_focus = GER_demand_memel
	unlock_national_focus = GER_four_year_plan
	unlock_national_focus = GER_autarky
	unlock_national_focus = GER_synthetic_rubber

	set_global_flag = end_of_czechoslovakia
	set_global_flag = olympics_1936
	set_variable = { var = GER_mefo_bill_counter value = 90 }
	complete_national_focus = GER_autobahn
	complete_national_focus = GER_west_wall
	complete_national_focus = GER_army_innovation
	complete_national_focus = GER_hermann_goring_werke
	complete_national_focus = GER_kdf_wagen
	complete_national_focus = GER_coal_liquidization
	complete_national_focus = GER_extra_tech_slot
	complete_national_focus = GER_japan_friend

	#BUILDINGS
	

	set_technology = {
		interwar_artillery = 1
		interwar_antitank = 1
		infantry_weapons2 = 1
		improved_infantry_weapons = 1
		support_weapons = 1
		support_weapons2 = 1
		paratroopers = 1
		

		#doctrines
		delay = 1
		elastic_defence = 1
		armored_spearhead = 1
		schwerpunk = 1
		blitzkrieg = 1
		convoy_interdiction_ti = 1
		unrestricted_submarine_warfare = 1
		raider_patrols = 1
		#air
		formation_flying = 1		
		dive_bombing = 1
		direct_ground_support = 1

		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		radio_detection = 1
		decimetric_radar = 1
		mechanical_computing = 1
		computing_machine = 1
		basic_encryption = 1
		basic_decryption = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		oil_processing = 1
		fuel_refining2 = 1
		construction1 = 1
		construction2 = 1
		construction3 = 1
		construction4 = 1
		dispersed_industry = 1
		dispersed_industry2 = 1
		dispersed_industry3 = 1
		dispersed_industry4 = 1

	}

	if = {
		limit = {
			NOT = {
				has_dlc = "No Step Back"
			}
		}
		set_technology = {
			basic_medium_tank = 1 
		}
		set_oob = "GER_1939"
	}
	if = {
		limit = {
			
			has_dlc = "No Step Back"
			
		}
		set_technology = {
			basic_medium_tank_chassis = 1 
		}
		set_oob = "GER_1939_nsb"
	}
	if = {
		limit = {
			not = {
				has_dlc = "Man the Guns"
			}
		}
		set_technology = {
			basic_heavy_cruiser = 1
			improved_heavy_cruiser = 1
			improved_battleship = 1
			early_carrier = 1
			basic_carrier = 1
			improved_carrier = 1
		}
		set_naval_oob = "GER_1939_naval_legacy"
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_technology = {
			improved_ship_hull_cruiser = 1
			basic_ship_hull_heavy = 1
			early_ship_hull_carrier = 1
			basic_ship_hull_carrier = 1
			improved_heavy_battery = 1
			basic_heavy_armor_scheme = 1
		}
		set_naval_oob = "GER_1939_naval_mtg"
	}
	if = {
		limit = { has_dlc = "By Blood Alone" }
			set_air_oob = "GER_1939_air_bba"
		else = {
			set_air_oob = "GER_1939_air_legacy"
			set_technology = {
				CAS2 = 1
				heavy_fighter1 = 1
			}
		}
	}
}

set_politics = {
	ruling_party = fascism
	last_election = "1933.3.5"
	election_frequency = 48
	elections_allowed = no
}
set_popularities = {
	democratic = 20
	fascism = 60
	communism = 20
}

create_faction = Axis
add_to_faction = GER


add_ideas = {
	sour_loser
	general_staff
	limited_exports
	limited_conscription
	partial_economic_mobilisation
}
add_ideas = GER_mefo_bills_1

activate_mission = GER_mefo_bills_mission

recruit_character = GER_wilhelm_pieck
recruit_character = GER_konrad_adenauer
recruit_character = GER_adolf_hitler
recruit_character = GER_albert_kesselring
recruit_character = GER_alfred_jodl
recruit_character = GER_alfred_saalwachter
recruit_character = GER_erhard_milch
recruit_character = GER_erich_bey
recruit_character = GER_erich_raeder
recruit_character = GER_erich_von_manstein
recruit_character = GER_ernst_udet
recruit_character = GER_ernsteberhard_hell
recruit_character = GER_erwin_rommel
recruit_character = GER_erwin_von_witzleben
recruit_character = GER_ewald_von_kleist
recruit_character = GER_fedor_von_bock
recruit_character = GER_felix_steiner
recruit_character = GER_ferdinand_schorner
recruit_character = GER_franz_halder
recruit_character = GER_friedrich_paulus
recruit_character = GER_friedrich_schulz
recruit_character = GER_georg_von_kuchler
recruit_character = GER_georghans_reinhardt
recruit_character = GER_gerd_von_rundstedt
recruit_character = GER_hermann_goring
recruit_character = GER_gotthard_heinrici
recruit_character = GER_gunther_lutjens
recruit_character = GER_gunther_von_kluge
recruit_character = GER_hasso_von_manteuffel
recruit_character = GER_heinz_guderian
recruit_character = GER_heisenberg
recruit_character = GER_hermann_boehm
recruit_character = GER_hermann_hoth
recruit_character = GER_hugo_sperrle
recruit_character = GER_johannes_blaskowitz
recruit_character = GER_karl_donitz
recruit_character = GER_kurt_student
recruit_character = GER_ludwig_beck
recruit_character = GER_maximilian_von_weichs
recruit_character = GER_otto_ciliax
recruit_character = GER_paul_hausser
recruit_character = GER_ritter_von_greim
recruit_character = GER_sepp_dietrich
recruit_character = GER_viktor_schutze
recruit_character = GER_von_braun
recruit_character = GER_walter_kruger
recruit_character = GER_walter_model
recruit_character = GER_walther_von_brauchitsch
recruit_character = GER_walther_wever
recruit_character = GER_werner_von_fritsch
recruit_character = GER_wilhelm_keitel
recruit_character = GER_wilhelm_list
recruit_character = GER_wilhelm_marschall

recruit_character = GER_wilhelm_ritter_von_leeb
recruit_character = GER_wolfram_von_richthofen

recruit_character = GER_heinrich_himmler
recruit_character = GER_walther_funk
recruit_character = GER_hjalmar_schacht
recruit_character = GER_julius_leber
recruit_character = GER_albert_speer
recruit_character = GER_hans_oster
recruit_character = GER_theodor_heuss
recruit_character = GER_fritz_todt
recruit_character = GER_joachim_von_ribbentrop
recruit_character = GER_ernst_thalmann
recruit_character = GER_rudolf_hess
recruit_character = GER_martin_bormann
recruit_character = GER_wilhelm_canaris
recruit_character = GER_joseph_goebbels
recruit_character = GER_konstantin_von_neurath
recruit_character = GER_alfred_hugenberg
recruit_character = GER_kurt_schumacher
recruit_character = GER_wilhelm_ii
recruit_character = GER_wilhelm_iii
recruit_character = GER_victoria
recruit_character = GER_august_von_mackensen

recruit_character = GER_alexander_von_falkenhausen #Not visible unless recalled from China


if = {
	limit = {
		has_dlc = "Waking the Tiger"
	}
	recruit_character = GER_carl_friedrich_goerdeler
}

if = {
	limit = {
		has_dlc = "La Resistance"
	}
	create_operative_leader = {
		name = "Otto Skorzeny"
		GFX = GFX_portrait_otto_skorenzy
		traits = { operative_commando }
		bypass_recruitment = no
		available_to_spy_master = yes
		nationalities = { GER }
	}

	create_operative_leader = {
		name = "Nikolaus Ritter"
		GFX = GFX_portrait_nikolaus_ritter
		traits = { operative_safe_cracker }
		bypass_recruitment = no
		available_to_spy_master = yes
		nationalities = { GER }
	}
	create_operative_leader = {
		name = "Eleysa Bazna"
		GFX = GFX_portrait_eleysa_bazna
		traits = { operative_infiltrator }
		bypass_recruitment = no
		available_to_spy_master = yes
		nationalities = { GER TUR }
	}
}

if = {
	limit = {
		not = { has_dlc = "Man the Guns" }
	}
	### Ship Variants ###
	## 1936 Start ##
	# Light Cruisers #
	create_equipment_variant = {
		name = "Königsberg Class"
		type = light_cruiser_1
		parent_version = 0
		upgrades = {
			ship_reliability_upgrade = 2
			ship_engine_upgrade = 2
			ship_gun_upgrade = 2
			ship_anti_air_upgrade = 2
		}
		obsolete = yes
	}
	# Heavy Cruisers #
	create_equipment_variant = {
		name = "Deutschland Class"
		type = heavy_cruiser_1
		parent_version = 0
		upgrades = {
			ship_reliability_upgrade = 1
			ship_engine_upgrade = 1
			ship_armor_upgrade = 1
			ship_gun_upgrade = 2
		}
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	create_equipment_variant = {
		name = "Leichttraktor"
		type = light_tank_chassis_0
		parent_version = 0
		modules = {
			main_armament_slot = tank_small_cannon
			turret_type_slot = tank_light_two_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
			special_type_slot_1 = tank_radio_1
		}
		upgrades = {
			tank_nsb_engine_upgrade = 2
			tank_nsb_armor_upgrade = 2
		}
		obsolete = yes
		icon = "GFX_gwtank_medium"
	}
	create_equipment_variant = {
		name = "Panzer I Ausf. A"
		type = light_tank_chassis_1
		parent_version = 0
		modules = {
			main_armament_slot = tank_heavy_machine_gun
			turret_type_slot = tank_light_one_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
			special_type_slot_1 = tank_radio_1
		}
		upgrades = {
			tank_nsb_engine_upgrade = 5
			tank_nsb_armor_upgrade = 1
		}
		icon = "GFX_GER_basic_light_tank_medium"
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Neubaufahrzeug"
		type = heavy_tank_chassis_1
		parent_version = 0
		modules = {
			main_armament_slot = tank_close_support_gun
			turret_type_slot = tank_heavy_three_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
			special_type_slot_1 = tank_radio_1
			special_type_slot_2 = secondary_turret_hmg
			special_type_slot_3 = secondary_turret_hmg
			special_type_slot_4 = secondary_turret_hmg
		}
		upgrades = {
			tank_nsb_engine_upgrade = 6
			tank_nsb_armor_upgrade = 2
		}
		icon = "GFX_GER_basic_heavy_tank_medium"
	}
	create_equipment_variant = {
		name = "Panzer II Ausf. a"
		type = light_tank_chassis_2
		parent_version = 0
		modules = {
			main_armament_slot = tank_auto_cannon
			turret_type_slot = tank_light_two_man_tank_turret
			suspension_type_slot = tank_christie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
			special_type_slot_1 = tank_radio_1
		}
		upgrades = {
			tank_nsb_engine_upgrade = 3
			tank_nsb_armor_upgrade = 2
		}
		icon = "GFX_GER_improved_light_tank_medium"
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	create_equipment_variant = {
		name = "Deutschland Class"
		type = ship_hull_cruiser_panzerschiff
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
        	fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_battery_slot = ship_heavy_battery_2
			fixed_ship_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_engine_slot = cruiser_ship_engine_2
			rear_1_custom_slot = ship_torpedo_1
			mid_1_custom_slot = ship_airplane_launcher_1
    	}
	}
	create_equipment_variant = {
		name = "Type 24 Class"
		type = ship_hull_light_1
		name_group = GER_TB_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			rear_1_custom_slot = ship_mine_layer_1
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Zerstörer 1934 Class"
		type = ship_hull_light_2
		name_group = GER_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_2
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_torpedo_1
			rear_1_custom_slot = ship_mine_layer_1
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Zerstörer 1934A Class"
		type = ship_hull_light_2
		name_group = GER_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_2
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_torpedo_1
			rear_1_custom_slot = ship_depth_charge_1
		}
	}
	create_equipment_variant = {
		name = "Type II Class"
		type = ship_hull_submarine_1
		name_group = GER_SS_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_torpedo_slot = ship_torpedo_sub_1
			fixed_ship_engine_slot = sub_ship_engine_1
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Type VII Class"
		type = ship_hull_submarine_2
		name_group = GER_SS_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_torpedo_slot = ship_torpedo_sub_2
			fixed_ship_engine_slot = sub_ship_engine_1
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Königsberg Class"
		type = ship_hull_cruiser_2
		name_group = GER_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_2
			fixed_ship_armor_slot = ship_armor_cruiser_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = ship_light_medium_battery_1
			rear_1_custom_slot = ship_mine_layer_1
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Emden Class"
		type = ship_hull_cruiser_1
		name_group = GER_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_1
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			mid_1_custom_slot = ship_light_medium_battery_1
			mid_2_custom_slot = ship_torpedo_1
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Bremse Class"
		type = ship_hull_cruiser_1
		name_group = GER_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			mid_1_custom_slot = ship_anti_air_1
			mid_2_custom_slot = ship_mine_layer_1
			rear_1_custom_slot = ship_mine_layer_1
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Leipzig Class"
		type = ship_hull_cruiser_2
		name_group = GER_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			front_1_custom_slot = ship_anti_air_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = ship_light_medium_battery_1
			rear_1_custom_slot = ship_airplane_launcher_1
		}
	}
	create_equipment_variant = {
		name = "Admiral Hipper Class"
		type = ship_hull_cruiser_2
		name_group = GER_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_2
			fixed_ship_armor_slot = ship_armor_cruiser_2
			front_1_custom_slot = ship_anti_air_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = ship_airplane_launcher_1
			rear_1_custom_slot = ship_medium_battery_2
		}
	}
	create_equipment_variant = {
		name = "Scharnhorst Class"
		type = ship_hull_heavy_2
		name_group = GER_BB_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_2
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = heavy_ship_engine_2
			fixed_ship_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_bc_1
			front_1_custom_slot = ship_anti_air_1
			mid_1_custom_slot = empty
			mid_2_custom_slot = ship_secondaries_1
			rear_1_custom_slot = ship_heavy_battery_2
		}
	}
	create_equipment_variant = {
		name = "Deutschland Class"
		type = ship_hull_pre_dreadnought
		name_group = GER_BB_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = heavy_ship_engine_2
			fixed_ship_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_bb_1
			front_1_custom_slot = ship_anti_air_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
		obsolete = yes
	}
}
if = {
	limit = {
		NOT = {
			has_dlc = "By Blood Alone"
		}
	}
	create_equipment_variant = {
		name = "Ju 86"
		type = tac_bomber_equipment_0
		upgrades = {
			plane_tac_bomb_upgrade = 5
			plane_range_upgrade = 5
			plane_engine_upgrade = 5
			plane_reliability_upgrade = 5
		}
		obsolete = yes
	}
	
	create_equipment_variant = {
		name = "Do 17"
		type = tac_bomber_equipment_0
		upgrades = {
			plane_tac_bomb_upgrade = 5
			plane_range_upgrade = 1
			plane_engine_upgrade = 1
			plane_reliability_upgrade = 5
		}
		obsolete = yes
	}
}
if = {
	limit = {
		has_dlc = "By Blood Alone"
	}

	create_equipment_variant = {
		name = "Do 23"
		type = medium_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_1_2x
			special_type_slot_1 = empty
			special_type_slot_2 = empty
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Ju 86"
		type = medium_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_2_2x
			special_type_slot_1 = lmg_defense_turret_2x
			special_type_slot_2 = fuel_tanks_medium
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
		obsolete = yes
	}

	create_equipment_variant = {
		name = "He 111"
		type = medium_plane_airframe_1
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = medium_bomb_bay
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_2_2x
			special_type_slot_1 = lmg_defense_turret_2x
			special_type_slot_2 = lmg_defense_turret_2x
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
		icon = "GFX_GER_tactical_bomber1_medium"
	}
	
	create_equipment_variant = {
		name = "Do 17"
		type = small_plane_cas_airframe_0
		modules = {
			fixed_main_weapon_slot = small_bomb_bay
			engine_type_slot = engine_1_2x
			special_type_slot_1 = lmg_defense_turret_2x
		}
		icon = "GFX_GER_medium_plane_1_medium"
	}

	create_equipment_variant = {
		name = "He 51" #also covers Ar 68
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Hs 123"
		type = small_plane_cas_airframe_0
		modules = {
			fixed_main_weapon_slot = bomb_locks
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Bf 109 D"
		type = small_plane_airframe_1
		modules = {
			fixed_main_weapon_slot = light_mg_4x
			engine_type_slot = engine_2_1x
			special_type_slot_1 = empty
		}
		icon = "GFX_GER_fighter1_medium"
	}
	create_equipment_variant = {
		name = "Ju 87"
		type = small_plane_cas_airframe_1
		modules = {
			fixed_main_weapon_slot = bomb_locks
			engine_type_slot = engine_2_1x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = dive_brakes_small
		}
		icon = "GFX_GER_CAS1_medium"
	}
	create_equipment_variant = {
		name = "Do 22"
		type = small_plane_naval_bomber_airframe_1
		modules = {
			fixed_main_weapon_slot = torpedo_mounting
			engine_type_slot = engine_1_1x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = floats
		}
		icon = "GFX_GER_naval_bomber1_medium"
	}
}

## 1939 Start ##
1939.1.1 = {
	if = {
		limit = {
			not = { has_dlc = "Man the Guns" }
		}
		# Submarines #
		create_equipment_variant = {
			name = "Type VIIA"
			type = submarine_2
			parent_version = 0
			upgrades = {
				ship_reliability_upgrade = 1
				sub_engine_upgrade = 1
				sub_stealth_upgrade = 1
				sub_torpedo_upgrade = 1
			}
		}
		# Destroyer #
		create_equipment_variant = {
			name = "Zerstörer 1936"
			type = destroyer_2
			parent_version = 0
			upgrades = {
				ship_torpedo_upgrade = 2
				destroyer_engine_upgrade = 2
				ship_ASW_upgrade = 2
				ship_anti_air_upgrade = 2
			}
		}
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		create_equipment_variant = {
			name = "Zerstörer 1936 Class"
			type = ship_hull_light_2
			name_group = GER_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_light_battery_2
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = light_ship_engine_2
				fixed_ship_torpedo_slot = ship_torpedo_1
				rear_1_custom_slot = ship_depth_charge_1
			}
		}
		create_equipment_variant = {
			name = "Bismarck Class"
			type = ship_hull_heavy_2
			name_group = GER_BB_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_heavy_battery_3
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_1
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = heavy_ship_engine_2
				fixed_ship_secondaries_slot = ship_secondaries_2
				fixed_ship_armor_slot = ship_armor_bb_2
				front_1_custom_slot = ship_anti_air_1
				mid_1_custom_slot = ship_airplane_launcher_1
				mid_2_custom_slot = ship_secondaries_2
				rear_1_custom_slot = ship_heavy_battery_3
			}
		}
		create_equipment_variant = {
			name = "Graf Zeppelin Class"
			type = ship_hull_carrier_1
			name_group = GER_CV_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_deck_slot_1 = ship_deck_space
				fixed_ship_deck_slot_2 = ship_deck_space
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = carrier_ship_engine_2
				fixed_ship_secondaries_slot = ship_secondaries_1
				front_1_custom_slot = ship_deck_space
			}
		}
	}
	if = {
		limit = {
			has_dlc = "No Step Back"
		}
		create_equipment_variant = {
			name = "Panzer III Ausf. F"
			type = medium_tank_chassis_1
			parent_version = 0
			modules = {
				main_armament_slot = tank_small_cannon_2
				turret_type_slot = tank_medium_three_man_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension
				armor_type_slot = tank_welded_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_1
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = empty
				special_type_slot_4 = empty
			}
			upgrades = {
				tank_nsb_engine_upgrade = 6
				tank_nsb_armor_upgrade = 3
			}
			icon = "GFX_GER_basic_medium_tank_medium"
		}
		create_equipment_variant = {
			name = "Panzer IV Ausf. C"
			type = medium_tank_chassis_1
			parent_version = 1
			modules = {
				main_armament_slot = tank_close_support_gun
				turret_type_slot = tank_medium_three_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_welded_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_1
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = empty
				special_type_slot_4 = empty
			}
			upgrades = {
				tank_nsb_engine_upgrade = 6
				tank_nsb_armor_upgrade = 3
			}
			icon = "GFX_GER_improved_medium_tank_medium"
		}
		create_equipment_variant = {
			name = "Panzer 35(t)"
			type = light_tank_chassis_1
			parent_version = 1
			modules = {
				main_armament_slot = tank_high_velocity_cannon
				turret_type_slot = tank_light_two_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_1
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = empty
			}
			upgrades = {
				tank_nsb_engine_upgrade = 3
				tank_nsb_armor_upgrade = 2
			}
			obsolete = yes
			icon = "GFX_CZE_imp_light_tank"
		}
		create_equipment_variant = {
			name = "Panzer 38(t)"
			type = light_tank_chassis_2
			parent_version = 1
			modules = {
				main_armament_slot = tank_high_velocity_cannon
				turret_type_slot = tank_light_two_man_tank_turret
				suspension_type_slot = tank_bogie_suspension
				armor_type_slot = tank_riveted_armor
				engine_type_slot = tank_gasoline_engine
				special_type_slot_1 = tank_radio_1
				special_type_slot_2 = smoke_launchers
				special_type_slot_3 = empty
				special_type_slot_4 = empty
			}
			upgrades = {
				tank_nsb_engine_upgrade = 3
				tank_nsb_armor_upgrade = 3
			}
			
			icon = "GFX_CZE_basic_main_tank"
		}
	}
	if = {
		limit = { NOT = { has_dlc = "By Blood Alone" } }
		create_equipment_variant = {
			name = "He 112"
			type = fighter_equipment_1
			upgrades = {
				plane_gun_upgrade = 1
				plane_range_upgrade = 1  
				plane_engine_upgrade = 0
				plane_reliability_upgrade = 2
			}
		}
		create_equipment_variant = {
			name = "Bf 109 E"
			type = fighter_equipment_1
			upgrades = {
				plane_gun_upgrade = 2
				plane_range_upgrade = 1  
				plane_engine_upgrade = 2
				plane_reliability_upgrade = 4
			}
		}
	}
	if = {
		limit = {
			has_dlc = "By Blood Alone"
		}
		create_equipment_variant = {
			name = "Bf 109 E"
			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = light_mg_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_1_2x
				engine_type_slot = engine_2_1x
				special_type_slot_1 = empty
			}
			icon = "GFX_GER_fighter1_medium"
		}
		create_equipment_variant = {
			name = "Bf 110 C"
			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = light_mg_4x
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_1_2x
				engine_type_slot = engine_2_2x
				special_type_slot_1 = empty
			}
			icon = "GFX_GER_heavy_fighter1_medium"
		}
		create_equipment_variant = {
			name = "He 112"
			type = small_plane_airframe_1
			modules = {
				fixed_main_weapon_slot = light_mg_2x
				fixed_auxiliary_weapon_slot_1 = aircraft_cannon_1_2x
				engine_type_slot = engine_2_1x
				special_type_slot_1 = empty
			}
			icon = "GFX_GER_light_plane_1_medium"
		}
	}
	# Heavy Cruisers #
	#create_equipment_variant = {
	#	name = "Deutschland Class"
	#	type = heavy_cruiser_1
	#	parent_version = 0
	#	upgrades = {
	#		ship_reliability_upgrade = 1
	#		ship_engine_upgrade = 1
	#		ship_armor_upgrade = 1
	#		ship_gun_upgrade = 2
	#	}
	#	obsolete = yes
	#}
	
	set_popularities = {
	democratic = 1
	fascism = 98
	communism = 1
    }
}

1940.1.1 = {
	oob = "GER_1940"
	set_naval_oob = "GER_1940_naval_legacy"
	
	set_popularities = {
	democratic = 0
	fascism = 100
	communism = 0
    }

	### SPECIFIC 1940 STUFF
	if = {
		limit = {
			has_start_date > 1940.01.01
			has_start_date < 1941.01.01
		}
		add_named_threat = { threat = 40 name = 1939_bookmark_threat }

		create_wargoal = { type = annex_everything target = BEL }
		create_wargoal = { type = annex_everything target = HOL }
		create_wargoal = { type = annex_everything target = LUX }

	}

}

1941.1.1 = {
    diplomatic_relation = { country = JAP relation = non_aggression_pact }
	SOV = {
		remove_opinion_modifier = { target = GER modifier = sov_ger_treaty }
		remove_opinion_modifier = { target = GER modifier = sov_ger_treaty_trade }
	}
	every_other_country = {
		limit = {
			has_government = fascism 
		}
		remove_opinion_modifier = { target = GER modifier = MR_pact_fascists }
	}
    remove_ideas = { rudolf_hess }
	retire_character = GER_rudolf_hess
	retire_character = GER_werner_von_fritsch
    declare_war_on = { target = POL type = annex_everything }
	declare_war_on = { target = BEL type = annex_everything }
	declare_war_on = { target = HOL type = annex_everything }
	set_technology = {
		improved_light_tank = 1 
		basic_medium_tank = 1 
		CAS2 = 1
		heavy_fighter1 = 1
		interwar_artillery = 1
		interwar_antitank = 1
		infantry_weapons2 = 1
		improved_infantry_weapons = 1
		support_weapons = 1
		support_weapons2 = 1
		paratroopers = 1
		improved_medium_tank = 1
		improved_heavy_tank = 1
		basic_medium_td = 1
		improved_infantry_weapons_2 = 1
		support_weapons3 = 1
		mechanised_infantry = 1
		tech_mountaineers2 = 1
		tech_engineers2 = 1
		tech_recon2 = 1
		tech_field_hospital = 1
        tech_signal_company = 1
        tech_signal_company2 = 1
        tech_military_police = 1
		tech_military_police2 = 1
		tech_maintenance_company = 1
		tech_maintenance_company2 = 1
        tech_logistics_company = 1
        tech_logistics_company2 = 1
		artillery1 = 1
		artillery2 = 1
		artillery3 = 1
		antiair1 = 1
		antiair2 = 1
		antitank1 = 
		fighter1 = 1
		fighter2 = 1

		#doctrines
		delay = 1
		elastic_defence = 1
		armored_spearhead = 1
		schwerpunk = 1
		blitzkrieg = 1
		kampfgruppe = 1 #MOBILE WARFARE
		convoy_interdiction_ti = 1
		unrestricted_submarine_warfare = 1
		raider_patrols = 1
		#air
		formation_flying = 1		
		dive_bombing = 1
		direct_ground_support = 1
		formation_fighting = 1
		hunt_and_destroy = 1
		combat_unit_destruction = 1


		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		radio_detection = 1
		decimetric_radar = 1
		mechanical_computing = 1
		computing_machine = 1
		basic_encryption = 1
		basic_decryption = 1
		improved_computing_machine = 1
		improved_decimetric_radar = 1
		improved_encryption = 1
		improved_decryption = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		assembly_line_production = 1
		synth_oil_experiments = 1
		oil_processing = 1
		fuel_refining2 = 1
		improved_oil_processing = 1
		construction1 = 1
		construction2 = 1
		construction3 = 1
		construction4 = 1
		dispersed_industry = 1
		dispersed_industry2 = 1
		dispersed_industry3 = 1
		dispersed_industry4 = 1
		improved_equipment_conversion = 1
    }
    oob = "GER_1941"
	set_naval_oob = "GER_1941_naval_legacy"
	complete_national_focus = GER_anti_comitern_pact
	unlock_national_focus = GER_ussr_war_goal
	complete_national_focus = GER_second_vienna_award
	unlock_national_focus = GER_danzig_or_war
	unlock_national_focus = GER_around_maginot
	unlock_national_focus = GER_weserubung
	complete_national_focus = GER_air_innovation
	complete_national_focus = GER_strategic_air_effort

	#### Pre Finland Betrayal
	if = {
		limit = {
			has_start_date > 1940.01.01
			has_start_date < 1945.01.01
		}
		add_to_faction = FIN
	}


	### Stayed In The Axis Till the End
	if = {
		limit = {
			has_start_date > 1941.01.01
			has_start_date < 1946.01.01
		}

		set_autonomy = {
			target = CRO
			autonomous_state = autonomy_satellite
		}

		add_to_faction = HUN
		add_to_faction = CRO
		declare_war_on = { target = ENG type = annex_everything }
		declare_war_on = { target = FRA type = annex_everything }
		declare_war_on = { target = ETH type = annex_everything }
		

	}
	
	#Puppeted after German occupation
	if = {
		limit = {
			has_start_date > 1945.01.01
			has_start_date < 1946.01.01
		}
		
		set_autonomy = {
			target = HUN
			autonomous_state = autonomy_reichsprotektorat
		}
	}

	###SWITCH SIDES IN LATE 44
	if = {
		limit = {
			has_start_date > 1941.01.01
			has_start_date < 1945.01.01
		}
		### This one Actually got overrun by Yugoslavia
		set_autonomy = {
			target = SER
			autonomous_state = autonomy_reichsprotektorat
		}
		add_to_faction = BUL
		add_to_faction = ROM
		add_to_faction = SER
		BUL = { declare_war_on = { target = ENG type = annex_everything } }
		ROM = { declare_war_on = { target = ENG type = annex_everything } }
		SER = {
		    add_to_war = {
				targeted_alliance = GER
				enemy = ENG
			}
			add_to_war = {
				targeted_alliance = GER
				enemy = USA
			}
			add_to_war = {
				targeted_alliance = GER
				enemy = SOV
			}
		}
	}

	### Was a Sort-of-Puppet then got annexed
	if = {
		limit = {
			has_start_date > 1941.01.01
			has_start_date < 1943.01.01
		}

		set_autonomy = {
			target = VIF
			autonomous_state = autonomy_satellite
		}
		add_to_faction = VIF
		VIF = { declare_war_on = { target = ENG type = annex_everything } }
		SWE = { give_military_access = GER }
	}
	
	### SPECIFIC 1941 STUFF
	if = {
		limit = {
			has_start_date > 1941.01.01
			has_start_date < 1942.01.01
		}
		add_named_threat = { threat = 40 name = 1941_bookmark_threat }
		create_wargoal = { type = annex_everything target = SOV }
		declare_war_on = { target = SOV type = annex_everything }
		every_country = {
			limit = { is_in_faction_with = GER }
			add_to_war = {
				targeted_alliance = GER
				enemy = ENG
			}
		}

		ENG = {
			every_country = {
				limit = { is_in_faction_with = ENG }
				add_to_war = {
					targeted_alliance = ENG
					enemy = GER
				}
			}
		}
	}

}

1942.1.1 = {
    remove_opinion_modifier = { target = SOV modifier = MR_pact }
    complete_national_focus = GER_grosraumwirtschaft
	complete_national_focus = GER_army_innovation_2
	complete_national_focus = GER_long_range_escorts
	complete_national_focus = GER_trade_interdiction
    add_ideas = { low_war_casualties } #approximately 800k casualties at June 1942
	retire_character = GER_fritz_todt

	#### Pre Finland Betrayal
	if = {
		limit = {
			has_start_date > 1942.01.01
			has_start_date < 1945.01.01
		}
		FIN = { declare_war_on = { target = SOV type = annex_everything } }
		HUN = { declare_war_on = { target = SOV type = annex_everything } }
		ROM = { declare_war_on = { target = SOV type = annex_everything } }
		BUL = { declare_war_on = { target = SOV type = annex_everything } }
		SER = { declare_war_on = { target = SOV type = annex_everything } }
		complete_national_focus = GER_reintegrate_luxemburg_and_alsace_lorraine
	}

	### WW2 Stuff
	if = {
		limit = {
			has_start_date > 1942.01.01
			has_start_date < 1946.01.01
		}
		add_named_threat = { threat = 70 name = 1942_bookmark_threat }
		declare_war_on = { target = SOV type = annex_everything }
		declare_war_on = { target = USA type = annex_everything }
		declare_war_on = { target = PAN type = annex_everything }
		declare_war_on = { target = COS type = annex_everything }
		declare_war_on = { target = DOM type = annex_everything }
		declare_war_on = { target = ELS type = annex_everything }
		declare_war_on = { target = HAI type = annex_everything }
		declare_war_on = { target = HON type = annex_everything }
		declare_war_on = { target = NIC type = annex_everything }
		declare_war_on = { target = CUB type = annex_everything }
		declare_war_on = { target = GUA type = annex_everything }
		declare_war_on = { target = MEX type = annex_everything }
		declare_war_on = { target = INS type = annex_everything }
		every_country = {
			limit = { is_in_faction_with = GER }
			add_to_war = {
				targeted_alliance = GER
				enemy = ENG
			}
			add_to_war = {
				targeted_alliance = GER
				enemy = USA
			}
		}

		every_country = {
			limit = { is_in_faction_with = GER }
			add_to_war = {
				targeted_alliance = GER
				enemy = SOV
			}
		}

		ENG = {
			every_country = {
				limit = { is_in_faction_with = ENG }
				add_to_war = {
					targeted_alliance = ENG
					enemy = GER
				}
			}
		}
		USA = {
			every_country = {
				limit = { is_in_faction_with = USA }
				add_to_war = {
					targeted_alliance = USA
					enemy = GER
				}
			}
		}
		SOV = {
			every_country = {
				limit = { is_in_faction_with = SOV }
				add_to_war = {
					targeted_alliance = SOV
					enemy = GER
				}
			}
		}
	}
    
	oob = "GER_1942"
	complete_national_focus = GER_atlantikwall
	complete_national_focus = GER_german_war_economy
	complete_national_focus = GER_form_the_reichskommissariats
	complete_national_focus = GER_air_innovation_2
	set_technology = {
		atomic_research = 1
	    infantry_weapons2 = 1
		improved_infantry_weapons_2 = 1
	    artillery2 = 1
		antitank2 = 1
	}
	set_naval_oob = "GER_1942_naval_legacy"
	set_fuel_ratio = 0.8
}

1943.1.1 = {
    upgrade_economy_law = yes
	if = {
		limit = {
			has_start_date > 1943.01.01
			has_start_date < 1946.01.01
		}
		set_cosmetic_tag = FORM_GRO
		declare_war_on = { target = BRA type = annex_everything }
		declare_war_on = { target = PER type = annex_everything }
		declare_war_on = { target = BOL type = annex_everything }
		declare_war_on = { target = COL type = annex_everything }
		add_ideas = {
			total_mobilization
			all_adults_serve
		}
	}

	oob = "GER_1943"
	set_naval_oob = ""
	set_fuel_ratio = 0.6
}

1944.1.1 = {

    complete_national_focus = GER_rocketry_focus
	complete_national_focus = GER_ostwall
	complete_national_focus = GER_modular_construction
	declare_war_on = { target = FRA type = annex_everything }
    
	remove_ideas = { low_war_casualties }
    add_ideas = { medium_war_casualties } #approximately 2.5 million casualties at June 1944

	### Was a Sort-of-Puppet till it collapsed
	if = {
		limit = {
			has_start_date > 1944.01.01
			has_start_date < 1946.01.01
		}

		set_autonomy = {
			target = RSI
			autonomous_state = autonomy_puppet
		}
		add_to_faction = RSI
		RSI = {
		    add_to_war = {
				targeted_alliance = GER
				enemy = ENG
			}
			add_to_war = {
				targeted_alliance = GER
				enemy = USA
			}
			add_to_war = {
				targeted_alliance = GER
				enemy = SOV
			}
		}
		
		add_ideas = {
			total_mobilization
			scraping_the_barrel
		}
		
	}
	
    oob = "GER_1944"
	set_technology = {
		# CAS1 = 1
			# CAS2 = 1

			# heavy_fighter1 = 1
			# heavy_fighter2 = 1

			# strategic_bomber1 = 1
			# strategic_bomber2 = 1
			# tactical_bomber2 = 1

			# fighter1 = 1
			# fighter2 = 1
			# fighter3 = 1

			interwar_artillery = 1
			interwar_antitank = 1
			infantry_weapons2 = 1
			improved_infantry_weapons = 1
			support_weapons = 1
			support_weapons2 = 1
			paratroopers = 1
			improved_infantry_weapons_2 = 1
			support_weapons3 = 1
			support_weapons4 = 1
			mechanised_infantry = 1
			mechanised_infantry2 = 1
			tech_mountaineers2 = 1
			tech_engineers2 = 1
			tech_recon2 = 1
			paratroopers2 = 1
			marines = 1

			tech_special_forces = 1
			#advanced_special_forces = 1 #advanced
			improved_special_forces = 1 #expanded
			#extreme_environment_training = 1
			#survival_training = 1
			#elite_forces = 1


			tech_field_hospital = 1
			tech_field_hospital2 = 1		
			tech_signal_company = 1
			tech_signal_company2 = 1
			tech_logistics_company = 1
			tech_logistics_company2 = 1
			artillery1 = 1
			artillery2 = 1
			artillery3 = 1
			artillery4 = 1
			artillery5 = 1
			antiair1 = 1
			antiair2 = 1
			antitank1 = 1
			antitank2 = 1
			antitank3 = 1
			antitank4 = 1

			#doctrines
			delay = 1
			elastic_defence = 1
			armored_spearhead = 1
			schwerpunk = 1
			blitzkrieg = 1
			kampfgruppe = 1 #MOBILE WARFARE
			convoy_interdiction_ti = 1
			unrestricted_submarine_warfare = 1
			raider_patrols = 1
			wolfpacks = 1
			capital_ship_raiders = 1
			#air
			formation_flying = 1		
			dive_bombing = 1
			direct_ground_support = 1
			formation_fighting = 1
			hunt_and_destroy = 1
			combat_unit_destruction = 1


			#electronics
			electronic_mechanical_engineering = 1
			mechanical_computing = 1
			computing_machine = 1


			radio = 1
			radio_detection = 1
			decimetric_radar = 1
			improved_decimetric_radar = 1
			centimetric_radar = 1
			improved_centimetric_radar = 1

			#industry
			excavation1 = 1
			excavation2 = 1
			excavation3 = 1
			basic_machine_tools = 1
			improved_machine_tools = 1
			advanced_machine_tools = 1
			assembly_line_production = 1
			synth_oil_experiments = 1
			oil_processing = 1
			rubber_processing = 1
			improved_rubber_processing = 1
			advanced_rubber_processing = 1
			fuel_refining2 = 1
			fuel_refining3 = 1
			fuel_refining4 = 1
			improved_oil_processing = 1
			advanced_oil_processing = 1
			construction1 = 1
			construction2 = 1
			construction3 = 1
			construction4 = 1
			#construction5 = 1
			dispersed_industry = 1
			dispersed_industry2 = 1
			dispersed_industry3 = 1
			dispersed_industry4 = 1
			dispersed_industry5 = 1

			#1944
			motorized_rocket_unit = 1
			experimental_rockets = 1
			rocket_engines = 1
			jet_engines = 1
			atomic_research = 1
			advanced_infantry_weapons = 1
			#advanced_infantry_weapons2 = 1
			infantry_at = 1
			#infantry_at2 = 1
			tech_engineers3 = 1
			tech_recon3 = 1
			tech_military_police = 1
			tech_military_police2 = 1
			tech_military_police3 = 1
			tech_maintenance_company = 1
			tech_maintenance_company2 = 1
			#tech_maintenance_company3 = 1
			#tech_field_hospital3 = 1
			tech_logistics_company3 = 1
			#tech_signal_company3 = 1
			rocket_artillery = 1
			rocket_artillery2 = 1
			rocket_artillery3 = 1
			rocket_artillery4 = 1
			antiair3 = 1
			antiair4 = 1
			antiair5 = 1
	}
    if = {
		limit = {
			has_dlc = "Death or Dishonor"
		}
		set_technology = {
			improved_equipment_conversion = 1
			advanced_equipment_conversion = 1
		}
	}
	if = {
		limit = {
			has_start_date > 1944.01.01
			has_start_date < 1946.01.01
		}
		declare_war_on = { target = ITA type = annex_everything }
		declare_war_on = { target = LIB type = annex_everything }
	}
	set_fuel_ratio = 0.4
}

1945.1.1 = {
    remove_ideas = { medium_war_casualties }
    add_ideas = { high_war_casualties } #approximately 4.1 million casualties at March 1945
	oob = "GER_1945"
	
	#20 July Plot members who were caught
	retire_character = GER_erwin_rommel
	retire_character = GER_ludwig_beck
	retire_character = GER_erwin_von_witzleben
	retire_character = GER_gunther_von_kluge
	
	#Political opponent who was purged
	retire_character = GER_ernst_thalmann
	
	if = {
		limit = {
			has_start_date > 1944.01.01
			has_start_date < 1946.01.01
		}
		
		add_ideas = {
			total_mobilization
			scraping_the_barrel
		}
		
	}
	if = {
		limit = {
			has_start_date > 1945.01.01
			has_start_date < 1946.01.01
		}
		declare_war_on = { target = FIN type = annex_everything }
		declare_war_on = { target = ECU type = annex_everything }
		declare_war_on = { target = URG type = annex_everything }
		declare_war_on = { target = GRE type = annex_everything }
		declare_war_on = { target = LUX type = annex_everything }
		declare_war_on = { target = PAR type = annex_everything }
		declare_war_on = { target = PRU type = annex_everything }
		declare_war_on = { target = TUR type = annex_everything }
		declare_war_on = { target = SAU type = annex_everything }
		declare_war_on = { target = VEN type = annex_everything }
		declare_war_on = { target = HOL type = annex_everything }
		declare_war_on = { target = BEL type = annex_everything }
		declare_war_on = { target = YUG type = annex_everything }
		CRO = { declare_war_on = { target = YUG type = annex_everything } }
	}
	set_fuel_ratio = 0.15

}

1945.5.1 = {
    oob = "GER_VE_DAY"
	remove_ideas = { heinrich_himmler }
	retire_character = GER_adolf_hitler #Suicide
	retire_character = GER_heinrich_himmler #Labeled as a traitor to the Reich
	retire_character = GER_hermann_goring #Labeled as a traitor to the Reich
	retire_character = GER_joseph_goebbels #Suicide
	retire_character = GER_martin_bormann #Suicide
	retire_character = GER_walter_model #Suicide
	declare_war_on = { target = ARG type = annex_everything }
	declare_war_on = { target = CHL type = annex_everything }
	
	create_country_leader = {
		name = "Karl Dönitz"
		desc = "POLITICS_KARL_DONITZ_DESC"
		picture = GFX_portrait_GER_karl_donitz
		expire = "1965.1.1"
		ideology = nazism
		traits = {
			dictator
		}
	}
}